import request from '@/utils/request'
export function fetchList(params) {
    return request({
        url: '/sensitive/list',
        method: 'get',
        params: params
    })
}
export function createSensitive(data) {
    return request({
        url: '/sensitive/create',
        method: 'post',
        data: data
    })
}

export function deleteSensitive(id) {
    return request({
        url: '/sensitive/delete/' + id,
        method: 'post',
    })
}

export function batchDelete(data) {
    return request({
        url: '/sensitive/batch-delete',
        method: 'post',
        data: data
    })
}

export function updateSensitive(id, data) {
    return request({
        url: '/sensitive/update/' + id,
        method: 'post',
        data: data
    })
}

export function batchImportFromFile(data) {
    return request({
        url: '/sensitive/batch-import-from-file',
        method: 'post',
        data: data
    })
}